# 保存csv到本地
import sys
import os
import csv


path='C:\hashaki\work/test.csv'

header=['a','b','c']
rows=[(1,2,3),(4,5,6),(7,8,9),('d','f','g')]
with open(path,'a') as f:
    f_csv=csv.writer(f)
    #f_csv.writerow(header)
    f_csv.writerows(rows)